home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 3.3 KB | 127 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Frame.h
- // Release Version: $ ODF 1 $
- //
- // Author: Laurent Delamare
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef FRAME_H
- #define FRAME_H
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- // ----- Framework Includes -----
-
- #ifndef FWFRAME_H
- #include "FWFrame.h"
- #endif
-
- #ifndef FWEVENT_H
- #include "FWEvent.h"
- #endif
-
- #ifndef FWLISTBX_H
- #include "FWListBx.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWRECEVR_H
- #include "FWRecevr.h"
- #endif
-
- //==============================================================================
- // Forward Declarations
- //==============================================================================
-
- class CFormPart;
- class FW_CMenuEvent;
- class FW_CNotification;
- class FW_CPushButton;
- class FW_CScrollBarScroller;
- class FW_CGrowBox;
- class FW_CEditView;
- class FW_CIdler;
- class FW_CViewTabber;
- class FW_CMouseEvent;
- class FW_CClipboardCommand;
-
- //==============================================================================
- // CFormFrame
- //==============================================================================
-
- class CFormFrame : public FW_CFrame, public FW_MReceiver
- {
- //----------------------------------------------------------------------------------------
- // Initialization/Destruction
- //
- public:
- FW_DECLARE_CLASS
- FW_DECLARE_AUTO(CFormFrame)
-
- CFormFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- CFormPart* formPart);
-
- virtual ~CFormFrame();
-
- //----------------------------------------------------------------------------------------
- // Inherited API
- //
- virtual void Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape);
- virtual void FrameShapeChanged(Environment *ev);
-
- // ----- Views -----
- virtual void CreateSubViews(Environment* ev);
- virtual void PostCreateViewFromStream(Environment* ev);
-
- // ----- FW_MReceiver overrides -----
- virtual void HandleNotification(Environment* ev, const FW_CNotification& notification);
-
- // ----- Internalize/Externalize -----
- // virtual void ExternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
- // virtual void InternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
-
- // ----- Printing
- virtual FW_CPrintHandler* NewPrintHandler(Environment* ev);
-
- // ----- Text-edit Clipboard
- FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
-
- //----------------------------------------------------------------------------------------
- // New API
- //
- public:
- void OpenPasswordDialog(Environment* ev);
- void ModifyPlatformList(Environment* ev, FW_Boolean addItem);
-
- CFormPart* GetFormPart();
- void GetContentRect(Environment* ev, FW_CRect& rect);
-
- //----------------------------------------------------------------------------------------
- // Data Members
- //
- private:
- CFormPart* fFormPart;
- FW_CIdler* fIdler;
- FW_CViewTabber* fViewTabber;
- };
-
- //==============================================================================
- // CFormFrame Inlines
- //==============================================================================
-
- inline CFormPart* CFormFrame::GetFormPart()
- {
- return fFormPart;
- }
-
- #endif
-